package com.xuelang.pipeline.artifact.app.nexus3v1.response;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author xiwen.zxg
 * @since 2024/7/10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CreateRoleResponse {
    /**
     * The description of this role.
     */
    private String description;
    /**
     * The id of the role.
     */
    private String id;
    /**
     * The name of the role.
     */
    private String name;
    /**
     * The list of privileges assigned to this role.
     */
    private List<String> privileges;
    /**
     * Indicates whether the role can be changed. The system will ignore any supplied external
     * values.
     */
    private Boolean readOnly;
    /**
     * The list of roles assigned to this role.
     */
    private List<String> roles;
    /**
     * The user source which is the origin of this role.
     */
    private String source;
}
